<template>
  <div class="tab-control">
    <router-link to="/movies/NowPlaying">正在热映</router-link>
    <router-link to="/movies/ComingSoon">即将上映</router-link>
  </div>
</template>

<script>
export default {
};
</script>

<style scoped  lang="less" >
.tab-control {
  display: flex;
  background-color: #fff;
  border-bottom: 1px solid #ededed;
  a {
    flex: 1;
    height: 49px;
    line-height: 49px;
    text-align: center;
  }
  .router-link-exact-active {
    color: red;
    position: relative;
    &::before {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0px;
      margin: auto;
      content: "";
      height: 2px;
      width: 60px;
      background-color: #ff5f16;
    }
  }
}
</style>